Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

915
Vistas
How can I resolve the TypeScript Compiler error "Namespace 'NodeJS' has no exported member 'Global'"?

QUESTION: How can I resolve the Typescript Compiler (tsc) error "Namespace 'NodeJS' has no exported member 'Global'"?

While running tsc, I'm all of a sudden seeing the following error in a "legacy"(not new) project:

node_modules/expect/node_modules/@jest/types/build/Global.d.ts:85:62 - error TS2694: Namespace 'NodeJS' has no exported member 'Global'.

85 export interface Global extends GlobalAdditions, Omit<NodeJS.Global, keyof GlobalAdditions> {
                                                                ~~~~~~

I tried adding installing @types/node and adding "types": ["node"] to my tsconfig (as suggested in this SO post), but that didn't help.

Node version: 12.18.4
Jest version: 26.5.3

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

This is a known bug: https://github.com/facebook/jest/issues/11640

Downgrading to @types/node v15.14.0 seems to work around the bug for me.

over 4 years ago · Santiago Trujillo Denunciar

0

I was able to resolve this issue by adding "skipLibCheck": true to my tsconfig.

TFM: https://www.typescriptlang.org/tsconfig#skipLibCheck

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda